package com.bus.core.events.product;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;

@Slf4j
public class ProductRemoteEventListener implements ApplicationListener<ProductRemoteEvent> {

    @Override
    public void onApplicationEvent(ProductRemoteEvent event) {
        log.info("事件的产品id= "+event.getProductId());
        log.info("根据产品id 处理业务 1   ");
    }
}
